Use :id instead of <id> in example URL

Akinori MUSHA %!s(int64=9) %!d(string=hace) años
padre
commit
a3de70b6af
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/models/agents/data_output_agent.rb

+ 2 - 2
app/models/agents/data_output_agent.rb

@@ -8,7 +8,7 @@ module Agents
8 8
 
9 9
         This Agent will output data at:
10 10
 
11
-        `https://#{ENV['DOMAIN']}/users/#{user.id}/web_requests/#{id || '<id>'}/:secret.xml`
11
+        `https://#{ENV['DOMAIN']}#{Rails.application.routes.url_helpers.web_requests_path(agent_id: ':id', user_id: user_id, secret: ':secret', format: :xml)}`
12 12
 
13 13
         where `:secret` is one of the allowed secrets specified in your options and the extension can be `xml` or `json`.
14 14
 
@@ -111,7 +111,7 @@ module Agents
111 111
 
112 112
     def feed_url(options = {})
113 113
       feed_link + Rails.application.routes.url_helpers.
114
-                  web_requests_path(agent_id: id || '<id>',
114
+                  web_requests_path(agent_id: id || ':id',
115 115
                                     user_id: user_id,
116 116
                                     secret: options[:secret],
117 117
                                     format: options[:format])